#pragma once

#include "SceneBase.h"
#include "ui/UIButton.h"
#include "ui/UIListView.h"

class CSceneTask : public CSceneBase
{
public:
	CSceneTask(void);
	virtual ~CSceneTask(void);
	CREATE_FUNC(CSceneTask);

	bool init() override;
	virtual void onEnter() override;
	//virtual void onExit() override;
	//virtual void update(float delta) override;
private:
	void onClose(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onGroup(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onGetTask(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
private:
	cocos2d::Node*				m_NodeTask;
	cocos2d::ui::Button*		m_Close;

	cocos2d::ui::Button*		m_Group;

	cocos2d::ui::Button*		m_GetTask;

	cocos2d::ui::ListView*		m_TaskList;
};

